﻿using System.IO;
using TestMerge.WordServices;

namespace TestMerge
{
    class Program
    {
        static void Main(string[] args)
        {
                string dataXml = File.ReadAllText(@"d:\test.xml");
                byte[] doc = File.ReadAllBytes(@"d:\test.docx");
                MetadataServicesClient srv = new MetadataServicesClient();
                byte[] output = srv.Merge(doc, dataXml);
                srv.Close();
                File.WriteAllBytes(@"d:\test.docx", output);
        }
    }
}
